﻿using PetaPoco;
using PmSoft;
using PmSoft.Caching;
using System.ComponentModel;
using static Modules.BankSpecialAccount.BankSpecialAccountConstants;

namespace Modules.BankSpecialAccount.Entitys
{
    /// <summary>
    ///
    ///</summary>
    [TableName("project_special_account_change_status_log")]
    [Description("工资专户状态变更日志")]
    [PrimaryKey("Id", AutoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class BankSpecialAccountChangeStatusLog : IEntity
    {
        /// <summary>
        ///
        ///</summary>
        [Column("id")]
        public int Id { get; set; }

        /// <summary>
        /// 操作人
        ///</summary>
        [Column("operator")]
        public string? Operator { get; set; }

        /// <summary>
        /// 操作时间
        ///</summary>
        [Column("create_time")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 操作类型（1 审核  2 修改状态）
        ///</summary>
        [Column("operation_type")]
        public 操作类型 OperationType { get; set; }

        /// <summary>
        /// 操作理由
        ///</summary>
        [Column("operation_result")]
        public string OperationResult { get; set; }

        /// <summary>
        /// 操作理由
        ///</summary>
        [Column("operation_reason")]
        public string OperationReason { get; set; }

        #region IEntity 成员

        [Ignore]
        object IEntity.EntityId { get { return Id; } }

        #endregion IEntity 成员
    }
}